#include <stdio.h>

int AddToTop(int top)
{
    int result = 0;
    int i = 0;
    for(i = 0; i <= top; i++)
    {
        result += i;
    }
    return result;
}

int main()
{
    int top = 100;
    
    int res = AddToTop(top);
    
    printf("res: %d\n", res);
    
    printf("hello 1\n");
    printf("hello 2\n");
    printf("hello 3\n");
    printf("hello 4\n");
    printf("hello 5\n");
    printf("hello 6\n");
    printf("hello 7\n");
    return 0;
}
